<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fitemid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fgender"/>
                            </li>
                            <li class="select-time">
                                <label>${comment}：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginFbirthday]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endFbirthday]"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="femail"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="faddress"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fphone"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fduty"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fdegree"/>
                            </li>
                            <li class="select-time">
                                <label>${comment}：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginFhiredate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endFhiredate]"/>
                            </li>
                            <li class="select-time">
                                <label>${comment}：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginFleavedate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endFleavedate]"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fempgroupid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fitemdepid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fbankid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fbankaccount"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fnote"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fbrno"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fname"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fparentid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fdeleted"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fdepartmentid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fempgroup"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fnumber"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fshortnumber"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fcreditperiod"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fcreditlevel"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fprofessionalgroup"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="foperationgroup"/>
                            </li>
                            <li class="select-time">
                                <label>${comment}：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginFmodifytime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endFmodifytime]"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fjobtypeid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fallotpercent"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fcreditdays"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fcreditamount"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fotheraracctid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fotherapacctid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fprearacctid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fpreapacctid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fhelpcode"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="fsmsphonenumber"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="feqqopenid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="feqqreceive"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="f102"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="f103"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="f105"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="erp:Item:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="erp:Item:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="erp:Item:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="erp:Item:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('erp:Item:edit')}]];
        var removeFlag = [[${@permission.hasPermi('erp:Item:remove')}]];
        var prefix = ctx + "erp/Item";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "【请填写功能名称】",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'fitemid', 
                    title: '${comment}'
                },
                {
                    field: 'fgender', 
                    title: '${comment}'
                },
                {
                    field: 'fbirthday', 
                    title: '${comment}'
                },
                {
                    field: 'femail', 
                    title: '${comment}'
                },
                {
                    field: 'faddress', 
                    title: '${comment}'
                },
                {
                    field: 'fphone', 
                    title: '${comment}'
                },
                {
                    field: 'fid', 
                    title: '${comment}'
                },
                {
                    field: 'fduty', 
                    title: '${comment}'
                },
                {
                    field: 'fdegree', 
                    title: '${comment}'
                },
                {
                    field: 'fhiredate', 
                    title: '${comment}'
                },
                {
                    field: 'fleavedate', 
                    title: '${comment}'
                },
                {
                    field: 'fempgroupid', 
                    title: '${comment}'
                },
                {
                    field: 'fitemdepid', 
                    title: '${comment}'
                },
                {
                    field: 'fbankid', 
                    title: '${comment}'
                },
                {
                    field: 'fbankaccount', 
                    title: '${comment}'
                },
                {
                    field: 'fnote', 
                    title: '${comment}'
                },
                {
                    field: 'fbrno', 
                    title: '${comment}'
                },
                {
                    field: 'fname', 
                    title: '${comment}'
                },
                {
                    field: 'fparentid', 
                    title: '${comment}'
                },
                {
                    field: 'fdeleted', 
                    title: '${comment}'
                },
                {
                    field: 'fdepartmentid', 
                    title: '${comment}'
                },
                {
                    field: 'fempgroup', 
                    title: '${comment}'
                },
                {
                    field: 'fnumber', 
                    title: '${comment}'
                },
                {
                    field: 'fshortnumber', 
                    title: '${comment}'
                },
                {
                    field: 'fiscreditmgr', 
                    title: '${comment}'
                },
                {
                    field: 'fcreditperiod', 
                    title: '${comment}'
                },
                {
                    field: 'fcreditlevel', 
                    title: '${comment}'
                },
                {
                    field: 'fprofessionalgroup', 
                    title: '${comment}'
                },
                {
                    field: 'foperationgroup', 
                    title: '${comment}'
                },
                {
                    field: 'fmodifytime', 
                    title: '${comment}'
                },
                {
                    field: 'fjobtypeid', 
                    title: '${comment}'
                },
                {
                    field: 'fallotpercent', 
                    title: '${comment}'
                },
                {
                    field: 'fcreditdays', 
                    title: '${comment}'
                },
                {
                    field: 'fcreditamount', 
                    title: '${comment}'
                },
                {
                    field: 'fotheraracctid', 
                    title: '${comment}'
                },
                {
                    field: 'fotherapacctid', 
                    title: '${comment}'
                },
                {
                    field: 'fprearacctid', 
                    title: '${comment}'
                },
                {
                    field: 'fpreapacctid', 
                    title: '${comment}'
                },
                {
                    field: 'fhelpcode', 
                    title: '${comment}'
                },
                {
                    field: 'fsmsphonenumber', 
                    title: '${comment}'
                },
                {
                    field: 'feqqopenid', 
                    title: '${comment}'
                },
                {
                    field: 'feqqreceive', 
                    title: '${comment}'
                },
                {
                    field: 'f102', 
                    title: '${comment}'
                },
                {
                    field: 'f103', 
                    title: '${comment}'
                },
                {
                    field: 'f105', 
                    title: '${comment}'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.fitemid + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.fitemid + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>